package com.monitor.dao;

import com.monitor.po.Location;
import com.monitor.util.Pager;

public interface LocationDao {

	Pager<Location> getLocationByUid(long uid, int pageSize, int currentPage) throws Exception;

	void addLocation(Location location) throws Exception;

	int deleteLocationByUid(long uid) throws Exception;

	int deleteLocation(long uid, long lid) throws Exception;

	int deleteLocation(long uid, long[] lids) throws Exception;

	/**
	 * 清除3天前的定位数据
	 * 
	 * @return
	 * @throws Exception
	 */
	int clearThreeDayAgoLocation() throws Exception;
}
